package com.example.design.behavior.observer;

import java.util.concurrent.locks.ReadWriteLock;

/**
 * \* @author: bear
 * \* Date: 2021-01-26-16:03
 * \* describe:
 */
public class Test {
	public static void main(String[] args) {
		News news = new News("今日说法标题","是谁偷走了我的奶酪");
		Author author = new Author("bear作者");
		Reader reader = new Reader("jhon读者");
		news.addObserver(author);
		news.content(reader);
	}
}
